#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<string>
using namespace std;
struct ss
{
	string xm;
	int nl;
	int cj;
}s[10];
int main()
{
	int n;
	cin >> n;
	for (int i = 0; i < n; i++)
	{
		cin >> s[i].xm >> s[i].nl >> s[i].cj;
		s[i].nl += 1;
		s[i].cj *= 1.2;
		if (s[i].cj > 600)
			s[i].cj = 600;
	}
	for (int i = 0; i < n; i++)
		cout << s[i].xm << " " << s[i].nl << " " << s[i].cj << endl;
	return 0;
}